<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>错题本</title>
    <style>
        #tab{
            width: 80%;
            padding-left: 250px;
        }
    </style>
</head>
<body>
<h2 style="text-align: center; color: #00aced">错题本</h2>
<table id="tab">
    <tr>
        <td>序号</td>
        <td>题目内容</td>
        <td>选项A</td>
        <td>选项B</td>
        <td>选项C</td>
        <td>选项D</td>
        <td>你的答案</td>
        <td>正确答案</td>
    </tr>
<%--    <h1>单选</h1>--%>
    <c:forEach items="${list1}" var="e">
        <tr>
            <td>${e.f_id}</td>
            <td>${e.question_name}</td>
            <td>${e.question_answera}</td>
            <td>${e.question_answerb}</td>
            <td>${e.question_answerc}</td>
            <td>${e.question_answerd}</td>
            <td>${e.user_answer}</td>
            <td>${e.question_answer}</td>
        </tr>
    </c:forEach>

<%--    <h1>多选</h1>--%>
    <c:forEach items="${list2}" var="e">
        <tr>
            <td>${e.f_id}</td>
            <td>${e.question_name}</td>
            <td>${e.question_answera}</td>
            <td>${e.question_answerb}</td>
            <td>${e.question_answerc}</td>
            <td>${e.question_answerd}</td>
            <td>${e.user_answer}</td>
            <td>${e.question_answer}</td>
        </tr>
    </c:forEach>
</table>
<a href="/examproject/nologin/index.jsp">返回首页</a>
</body>
</html>